package com.guinea.core.web;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionForward;
import org.apache.struts.action.ActionMapping;

public class ConsoleAction extends StrutsAction {
	protected ActionForward unspecified(ActionMapping mapping, ActionForm form,
			HttpServletRequest request, HttpServletResponse response)
			throws Exception {
		String module = request.getParameter("module");
		request.setAttribute("moduleName",module);
//		if (module != null) {
//			return new ActionForward("/WEB-INF/jsp/" + module + "/index.jsp");
//		}
		return new ActionForward("/WEB-INF/jsp/index.jsp");
	}
}
